package com.wk.unreal.yyzxserver.mapper;

import com.wk.unreal.yyzxserver.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {

    /**
     * 通过账号查询
     * @param username 用户名
     * @return User
     */
    @Select("select  * from user where username = #{username}")
    public User findByUsername(String username);

}

